<?php
include_once($gDOCUMENT_ROOT_SYSTEM.'include/userAction.php');
$userAction = new userAction();
switch ($film_info['rating']['CN'])
{
case 1:
	if(!$userAction->checkLogin())
	{
		//echo $language_pack['not_have_this_film'];
		header('Location:/');
		exit;
	}
	if(!$userAction->canIDo('view_CN_forbidden'))
	{
		echo $language_pack['film_rating_array']['CN'][1];
		exit;
	}
	break;
case 2:
	break;
case 3:
	if($gSPECIAL_TIME)
	{
		if(!$userAction->checkLogin())
		{
			//echo $language_pack['not_have_this_film'];
			header('Location:/');
			exit;
		}
		if(!$userAction->canIDo('view_CN_inattention'))
		{
			echo $language_pack['film_rating_array']['CN'][1];
			exit;
		}
	}
	break;
}
?>
